package com.zhuiyun.project.api.equipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.equipment.entity.Equipment;
import com.zhuiyun.project.api.venuemanagement.entity.VenueManagement;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@Mapper
public interface EquipmentMapper extends BaseMapper<Equipment> {
    /**
    * 分页查询+模糊查询 器材管理
    * @Author lpr
    * @Description
    * @Date 2023/11/8 11:30
    * @Return java.util.List<com.zhuiyun.project.api.equipment.entity.Equipment>
    * @param equipment
    */
    List<Equipment> selectEquipment(Equipment equipment);
    /**
    * 新增器材信息
    * @Author lpr
    * @Description
    * @Date 2023/11/8 15:37
    * @Return int
    * @param equipment
    */
    int addEquipment(Equipment equipment);
    /**
     * 新增器材图片
     * @Author lpr
     * @Description
     * @Date 2023/11/8 15:37
     * @Return int
     * @param equipment
     */
    int editEquipment(Equipment equipment);
    /**
    * 删除图片
    * @Author lpr
    * @Description
    * @Date 2023/11/9 15:55
    * @Return int
    * @param delImageId
    */
    int removePhoto(String delImageId);
    /**
     * 查询
     * @Author lpr
     * @Description
     * @Date 2023/11/9 15:55
     * @Return list
     * @param venueUniqueIdentifier
     */
    List<VenueManagement> listvenueManagementByVenueId(String venueUniqueIdentifier);
}
